package chapter5;

/**
 * @Author juzipi
 * @Date 2021/5/16 10:11
 * @Info
 */
public class OperandStackTest {

    public void testAddOperation(){
        //byte,short,char,boolean 都以int类型来保存
        byte i = 15;
        int j = 10;
        int k = i + j;

        int x = 1000;
    }


    public int getSum(){
        int m = 20;
        int n = 30;
        return m+n;
    }

    public void testget(){
        //aload_0加载this变量
        //然后invokevirtual执行this变量的方法
        int sum = getSum();
        int a = 20;
    }

}
